export default {

    category: Blockly.Categories.bepart ,
    
    color: [
        Blockly.Colours.bepart.primary,
        Blockly.Colours.bepart.secondary,
        Blockly.Colours.bepart.tertiary
    ] ,

    previousStatement: true ,
    nextStatement: true ,

    init() {
        this.appendDummyInput()
            .appendField("终端输出")
        this.appendValueInput("what")
    } ,

    coder: {
        JavaScript(block: any, coder: any) {
            let content = coder.valueToCode(block, "what", coder.ORDER_ASSIGNMENT)
            return `${coder.indentString()}console.log(${content})\n`
        }
    }
}
